<%= render :partial =>'/store/toolbar'%>
<div id="content_container">
<div style="width:600px;margin:20px auto">
  <h2>不可用图片列表</h2>

  <%= form_tag('reactive', :method => :post)%>
  <table class="admin">
    <tr>
      <td>ID</td>
      <td>缩略图</td>
      <td>数量</td>
      <td>选中</td>
    </tr>

    <% for @design in @designs %>
      <tr>
        <td><%=@design.id%></td>
        <td><%= image_tag url_for_file_column(@design, "image_url","medium") if @design.image_url %></td>
        <td><%=text_field("design[]", "quantity", :size => 2)%></td>
        <td><%=check_box("design[]","active")%></td>
      </tr>
    <% end %>
      <tfoot>
        <tr>
          <td colspan="4"><button  type="sumbit">修改为可用</button></td>
        </tr>
      </tfoot>
  </table>
</form>
<div id="pager">
  <%= will_paginate @designs,:prev_label => '«上一页',:next_label => '下一页»' %>
</div>
</div>
</div>